home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / makefiles / Makerules.subsrc < prev    next >
Text File  |  1992-09-28  |  865b  |  25 lines

  1. include ${GEOM}/makefiles/Makedefs.SUBDIRS
  2.  
  3. #
  4. # Where multiple source directories' files feed into a common library,
  5. # use Makerules.commonsrc in the common parent Makefile
  6. # and use Makerules.subsrc (this file) in each leaf Makefile.
  7.  
  8. # Typing "make" in the common parent propagates "make all" to the
  9. # leaf directories, causing only their object files to be compiled.
  10. # The parent Makerules.commonsrc then archives all the object files.
  11.  
  12. # Typing "make" in the leaf source directories invokes "make lib",
  13. # which (possibly) compiles and (always) archives just that
  14. # directory's object files.  We propagate "make lib" rather than the usual
  15. # "make all" since we've made "lib" the first target.
  16.  
  17. lib:
  18.  
  19. all lib install ${TARGETS} ${LIB} ${COMMONLIB} ${OBJS}: _always
  20.     @${DO_DIRS_THIS_MACH}
  21.  
  22. install:    formatman installman
  23.  
  24. include ${GEOM}/makefiles/Makerules.allsrc
  25.